package net.whg.java.abstrac;

public abstract class Triangle extends Shape{

    protected double a;

    protected double b;

    protected double c;

    public Triangle(double a, double b, double c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }

    @Override
    public void draw() {
        System.out.println("绘制三角形：边长分别为" + a + "," + b + "," + c);
    }

    public double getA() {
        return a;
    }

    public double getB() {
        return b;
    }

    public double getC() {
        return c;
    }
}
